package org.jeecg.modules.basic.demo.apartment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.basic.demo.bed.entity.LwgyBaseBed;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.naming.Name;
import java.io.Serializable;
import java.util.List;

/**
 * TODO
 *
 * @author CSD
 * @date 2021-04-27 15:53
 */
@Data
@TableName(value = "v_lwgy_base_room")
@ApiModel(value="楼宇房间视图对象", description="楼宇房间视图对象")
public class LwgyRoomViews implements Serializable {

    @Excel(name = "校区", width = 15)
//    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "校区id")
    private String campusId;
    @ApiModelProperty(value = "校区名称")
    private String campusName;

    //@Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    /**楼宇*/
    @Excel(name = "楼宇", width = 15)
//    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼宇id")
    private String buildingId;
    @ApiModelProperty(value = "楼宇名称")
    private String buildingName;
    /**单元*/
    @Excel(name = "单元", width = 15)
//    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "单元id")
    private String unitId;
    @ApiModelProperty(value = "单元名称")
    private String unitName;
    /**楼层*/
    @Excel(name = "楼层", width = 15)
//    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼层id")
    private String layerId;
    @ApiModelProperty(value = "楼层名称")
    private String layerName;
    /**房间*/
    @Excel(name = "房间", width = 15)
//    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "房间id")
    private String roomId;
    @ApiModelProperty(value = "房间名称")
    private String roomName;

    @ApiModelProperty(value = "房间类型")
    private String roomType;

    @ApiModelProperty(value = "房间坐标")
    private String roomCoordinates;

    @ApiModelProperty(value = "房间朝向")
    private String roomOrientation;

    @ApiModelProperty(value = "房间性别")
    private String roomSex;

    @ApiModelProperty(value = "几人间")
    private Integer fewHuman;

    @ApiModelProperty(value = "当前房间人数")
    private Integer pNum;

    @TableField(exist = false)
    private List<LwgyBaseBed> lwgyBaseBeds;

}
